package com.liangsui.mss.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liangsui.mss.domain.Role;
import com.liangsui.mss.dto.RoleDto;
import com.liangsui.mss.vo.DataGridView;

import java.util.List;

/**
* @author zhang
* @description 针对表【sys_role(角色信息表)】的数据库操作Service
* @createDate 2022-12-05 16:41:03
*/
public interface RoleService extends IService<Role> {

    DataGridView listRolePage(RoleDto roleDto);

    List<Role> listAllRoles();

    int addRole(RoleDto roleDto);

    void saveRoleMenu(Long roleId, Long[] menuIds);

    List<Long> getRoleIdsByUserId(Long userId);

    void saveRoleUser(Long userId, Long[] roleIds);

    int updateRole(RoleDto roleDto);

    Role getRoleById(Long roleId);

    int deleteRoleByIds(Long[] roleIds);
}
